const CracoLessPlugin = require('craco-less');
const HtmlWebpackPlugin = require("html-webpack-plugin");
const SimpleProgressWebpackPlugin = require('simple-progress-webpack-plugin');

module.exports = {
    webpack:{
        webpack: {         
            plugins: [
              // 查看打包的进度
              new SimpleProgressWebpackPlugin(),
              
            ]
        }
    },
    plugins: [
        {
            plugin: CracoLessPlugin,
            options: {
              lessLoaderOptions: {
                lessOptions: {
                  modifyVars: { '@primary-color': '#096dd9' },
                  javascriptEnabled: true,
                },
              },
            },
          },

    ],
};